package com.yiyahui.project.erp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 收费方式对象 yiya_charge_mode
 * 
 * @author yiyahui
 * @date 2020-05-29
 */

@ApiModel(value="收费方式对象")
public class YiyaChargeMode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 编码 */
    @ApiModelProperty(value="编码")
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @ApiModelProperty(value="名称")
    @Excel(name = "名称")
    private String name;

    /** 排序 */
    @ApiModelProperty(value="排序")
    @Excel(name = "排序")
    private Long sn;

    /** 抵扣金额 */
    @ApiModelProperty(value="抵扣金额")
    @Excel(name = "抵扣金额")
    private BigDecimal deductionMoney;

    /** 收费换算率 */
    @ApiModelProperty(value="收费换算率")
    @Excel(name = "收费换算率")
    private Long conversionRate;

    /** 收费账单 1 计入现金流 2 计入营业收入 3 计入绩效 4 计入医生业绩 */
    @ApiModelProperty(value="收费账单 1 计入现金流 2 计入营业收入 3 计入绩效 4 计入医生业绩")
    @Excel(name = "收费账单 1 计入现金流 2 计入营业收入 3 计入绩效 4 计入医生业绩")
    private String chargeCheck;

    /** 是否开启收费账单 0 关闭 1 开启 */
    @ApiModelProperty(value="是否开启收费账单 0 关闭 1 开启")
    @Excel(name = "是否开启收费账单 0 关闭 1 开启")
    private Integer isOpenCheck;

    /** 卡卷发售 1 计入现金流 2 计入营业收入 3 计入医生业绩 */
    @ApiModelProperty(value="卡卷发售 1 计入现金流 2 计入营业收入 3 计入医生业绩")
    @Excel(name = "卡卷发售 1 计入现金流 2 计入营业收入 3 计入医生业绩")
    private String cardSell;

    /** 是否开启卡卷发售 0 关闭 1 开启 */
    @ApiModelProperty(value="是否开启卡卷发售 0 关闭 1 开启")
    @Excel(name = "是否开启卡卷发售 0 关闭 1 开启")
    private Integer isOpenSell;

    /** 备注 */
    @ApiModelProperty(value="备注")
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSn(Long sn) 
    {
        this.sn = sn;
    }

    public Long getSn() 
    {
        return sn;
    }

    public BigDecimal getDeductionMoney() {
        return deductionMoney;
    }

    public void setDeductionMoney(BigDecimal deductionMoney) {
        this.deductionMoney = deductionMoney;
    }

    public void setConversionRate(Long conversionRate)
    {
        this.conversionRate = conversionRate;
    }

    public Long getConversionRate() 
    {
        return conversionRate;
    }
    public void setChargeCheck(String chargeCheck) 
    {
        this.chargeCheck = chargeCheck;
    }

    public String getChargeCheck() 
    {
        return chargeCheck;
    }
    public void setIsOpenCheck(Integer isOpenCheck) 
    {
        this.isOpenCheck = isOpenCheck;
    }

    public Integer getIsOpenCheck() 
    {
        return isOpenCheck;
    }
    public void setCardSell(String cardSell) 
    {
        this.cardSell = cardSell;
    }

    public String getCardSell() 
    {
        return cardSell;
    }
    public void setIsOpenSell(Integer isOpenSell) 
    {
        this.isOpenSell = isOpenSell;
    }

    public Integer getIsOpenSell() 
    {
        return isOpenSell;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("sn", getSn())
            .append("deductionMoney", getDeductionMoney())
            .append("conversionRate", getConversionRate())
            .append("chargeCheck", getChargeCheck())
            .append("isOpenCheck", getIsOpenCheck())
            .append("cardSell", getCardSell())
            .append("isOpenSell", getIsOpenSell())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
